import { createRouter, createWebHistory } from 'vue-router'
import ChartIndex from '@/components/ChartIndex.vue'

const routes = [
  { path: '/', name: 'defaultChart', component: ChartIndex },
  { path: '/chart_index', name: 'chartIndex', component: ChartIndex },
  { path: '/chart_index/:activityId', name: 'ChartIndex', component: ChartIndex },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
